﻿using UnityEditor;

namespace FrameworkEditor
{
    public class ToolsMenu
    {
        [MenuItem("Tools/Package/刷新冗余ab配置-全量")]
        public static void BuildFilterCommonAbCfgFull()
        {
            FilterCommonAbTool.Build(false);
        }

        [MenuItem("Tools/Package/刷新冗余ab配置-追加")]
        public static void BuildFilterCommonAbCfgAdd()
        {
            FilterCommonAbTool.Build();
        }

        [MenuItem("Tools/Package/刷新singlebg的ab配置-强更新")]
        public static void RefreshSingleBgAbCfg()
        {
            SinglebgAbSettingTool.RefreshCfg();
        }
        
        [MenuItem("SLTools/Lua/Gen modules require file %#&l")]
        public static void GenerateLuaModuleRequireFile()
        {
            GenLuaModules.GenModules();
        }
        
        [MenuItem("SLTools/Lua/Gen framework require file")]
        public static void GenerateLuaFrameworkRequireFile()
        {
            GenLuaModules.GenFramework();
        }
        
        [MenuItem("SLTools/Lua/Gen Emmy Define")]
        public static void GenerateEmmyLuaDefine()
        {
            Generator.GenerateEmmyTypeFiles();
        }
    }
}